/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.oai.metadataRepository.repository;

import cz.mzk.oai.metadataRepository.repository.collections.MetadataCollection;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author Martin Rehanek, Martin.Rehanek@gmail.com
 */
public class OaiSet {

    private final String setName;
    private final String setSpec;
    private Set<MetadataCollection> collections = new HashSet<MetadataCollection>();

    public OaiSet(String setSpec, String setName) {
        this.setSpec = setSpec;
        this.setName = setName;
    }

    /**
     * @return the setName
     */
    public String getSetName() {
        return setName;
    }

    /**
     * @return the setSpec
     */
    public String getSetSpec() {
        return setSpec;
    }

    /**
     * @return the collections
     */
    public Set<MetadataCollection> getCollections() {
        return collections;
    }

    /**
     * @param collections the collections to set
     */
    public void addCollection(MetadataCollection collection) {
        collections.add(collection);
    }
}
